package com.hz.pay.center.service.impl;

import com.hz.pay.center.mapper.PayChannelInfoMapper;
import com.hz.pay.center.model.PayChannelInfo;
import com.hz.pay.center.service.IPayChannelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PayChannelServiceImpl implements IPayChannelService {


    @Autowired
    private PayChannelInfoMapper payChannelInfoMapper;

    @Override
    public PayChannelInfo queryByMchIdAndPayWay(String mchId, String payChannelId, String payWay) {

        //1.先操作redis 没有操作数据库 TODO

        PayChannelInfo payChannelInfo = payChannelInfoMapper.queryByMchIdAndPayWay(mchId,payChannelId,payWay);
        return payChannelInfo;
    }
}
